package com.alawn.framework.core.domain;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public abstract class AuditableEntity extends BaseEntity {

	private static final long serialVersionUID = -7521832098319313521L;

	@TableLogic
	protected boolean deleted;

	@TableField(value = "creator", fill = FieldFill.INSERT)
	protected String creator;

	@TableField(value = "operator", fill = FieldFill.INSERT_UPDATE)
	protected String operator;

	@TableField(value = "created_time", fill = FieldFill.INSERT)
	protected LocalDateTime createdTime;

	@TableField(value = "operation_time", fill = FieldFill.INSERT_UPDATE)
	protected LocalDateTime operationTime;
}
